/*
 * Copyright (C) 2012 Le Tuan Anh <anh.takaji@gmail.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package ezcms.dto;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author Le Tuan Anh <anh.takaji@gmail.com>
 */
public class Order implements Serializable {

    private long id;
    private User customer;
    private int status;
    private List<LineItem> items;
    private CreditCard card;
    private String billingAddress;

    public Order() {
    }

    public Order(long id, User customer, int status, List<LineItem> items, CreditCard card, String billingAddress) {
        this.id = id;
        this.customer = customer;
        this.status = status;
        this.items = items;
        this.card = card;
        this.billingAddress = billingAddress;
    }

    /**
     * @return the id
     */
    public long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(long id) {
        this.id = id;
    }

    /**
     * @return the customer
     */
    public User getCustomer() {
        return customer;
    }

    /**
     * @param customer the customer to set
     */
    public void setCustomer(User customer) {
        this.customer = customer;
    }

    /**
     * @return the status
     */
    public int getStatus() {
        return status;
    }

    /**
     * @param status the status to set
     */
    public void setStatus(int status) {
        this.status = status;
    }

    /**
     * @return the items
     */
    public List<LineItem> getItems() {
        return items;
    }

    /**
     * @param items the items to set
     */
    public void setItems(List<LineItem> items) {
        this.items = items;
    }

    /**
     * @return the card
     */
    public CreditCard getCard() {
        return card;
    }

    /**
     * @param card the card to set
     */
    public void setCard(CreditCard card) {
        this.card = card;
    }

    /**
     * @return the billingAddress
     */
    public String getBillingAddress() {
        return billingAddress;
    }

    /**
     * @param billingAddress the billingAddress to set
     */
    public void setBillingAddress(String billingAddress) {
        this.billingAddress = billingAddress;
    }
}
